/* tslint:disable */
/* eslint-disable */

import React, { CSSProperties, SVGAttributes, FunctionComponent } from 'react';
import { getIconColor } from './helper';

interface Props extends Omit<SVGAttributes<SVGElement>, 'color'> {
  size?: number;
  color?: string | string[];
}

const DEFAULT_STYLE: CSSProperties = {
  display: 'block',
};

const IconDiamond: FunctionComponent<Props> = ({ size, color, style: _style, ...rest }) => {
  const style = _style ? { ...DEFAULT_STYLE, ..._style } : DEFAULT_STYLE;

  return (
    <svg viewBox="0 0 1024 1024" width={size + 'px'} height={size + 'px'} style={style} {...rest}>
      <path
        d="M657.6 128a64 64 0 0 1 47.872 21.472l206.368 232.16a96 96 0 0 1-3.872 131.68L557.248 864a64 64 0 0 1-90.496 0L116.032 513.28a96 96 0 0 1-3.84-131.648l206.336-232.16A64 64 0 0 1 366.4 128z m0 64h-291.2L160 424.16a32 32 0 0 0 1.28 43.872L512 818.72l350.72-350.688a32 32 0 0 0 3.648-40.832L864 424.16 657.6 192z m-253.984 198.72l3.008 2.656L512 498.656l105.376-105.28a32 32 0 0 1 42.24-2.656l3.008 2.656a32 32 0 0 1 2.656 42.24l-2.656 3.008-128 127.904a32 32 0 0 1-42.24 2.656l-3.008-2.656-128-127.904a32 32 0 0 1 42.24-47.936z"
        fill={getIconColor(color, 0, '#333333')}
      />
    </svg>
  );
};

IconDiamond.defaultProps = {
  size: 18,
};

export default IconDiamond;
